package com.gperp.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.gperp.pojo.AsAccount;
import com.gperp.pojo.AsCustoms;
import com.gperp.service.AccountService;

@Controller
@CrossOrigin
public class AccountController {
	@Resource
	private AccountService accountService;
	
	//多表查询客户信息
	@RequestMapping(value="queryAccountById",method=RequestMethod.GET)
	@ResponseBody
	public AsAccount queryAccountById(Long id){
		return accountService.queryAccountById(id);
		
	}
}
